<?php
class Pageley_Query_Condition_NotEquals extends Pageley_Query_Condition_Single {
	
	public function __construct($propertyName, $value) {
		parent::__construct($propertyName, $value);
	}
	
	public function matches($entity) {
		return $this->getValue() != $entity->get($this->getPropertyName());
	}
	
	public function getOperator() {
		return "!=";
	}
}